package com.offcn.product.controller;

import com.offcn.product.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ProductController {
    @Autowired
    private ProductService productService;

    @GetMapping("hello")
    public String hello(){
        String str = productService.hello();
        return str;
    }
}
